#ifndef OPERATIONS_H
#define OPERATIONS_H

#include "operator.h"

#include <QStringList>

class Cn;
class Container;

class Operations
{
	public:
		static Object* reduce(Operator::OperatorType op, Object* oper, Object* oper1, bool &correct);
		static Object* reduceUnary(Operator::OperatorType op, Object* oper, bool &correct);
		
	private:
		static Cn* reduceRealReal(Operator::OperatorType op, Cn *oper, const Cn* oper1, bool &correct);
		static Cn* reduceUnaryReal(Operator::OperatorType op, Cn *oper, bool &correct);
		
		static Object* reduceRealVector(Operator::OperatorType op, Cn *oper, Container* vector, bool &correct);
		static Object* reduceVectorReal(Operator::OperatorType op, Container* vector, Cn *oper, bool &correct);
		static Object* reduceVectorVector(Operator::OperatorType op, Container* v1, Container* v2, bool &correct);
		static Object* reduceUnaryVector(Operator::OperatorType op, Container* c, bool &correct);
};

#endif
